package com.jumper.study.admin.dto.req;

import jakarta.validation.constraints.NotBlank;

public class LoginReq {
    @NotBlank(message="未填写用户名")
    private String username;

    @NotBlank(message="未填写密码")
    private String password;

    @NotBlank(message="未填写验证码")
    private String code;

    private String ip;

    private String agent;

    public LoginReq() {
    }

    public LoginReq(String username, String password, String code) {
        this.username = username;
        this.password = password;
        this.code = code;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getAgent() {
        return agent;
    }

    public void setAgent(String agent) {
        this.agent = agent;
    }

    
}
